module.exports = class extends think.Model {
  async addData(data, addId) {
    for (const item of data) {
      const id = await this.model('custom_list').add({
        name: item.name,
        manage: item.manage,
        phone: item.phone,
        create_time: ['exp', 'CURRENT_TIMESTAMP()'],
        contract_id: addId,
      });
      // this.model('contract_list')
      //   .where({ id: addId })
      //   .update({ custom_id: id });
    }
  }
};
